import { type App } from 'vue'

// element-plus 图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

/**
 * @description: 批量注册 element-plus 图标
 * @param {App} app: vue 实例
 */
function setup(app: App) {
  for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }
}

export default setup
